package fr.inria.arles.temperatureManagement.queryProcessor.query;

import java.sql.SQLException;

/**
 * A Query to update the current reference temperate setting.
 */
public class UpdateTempQuery extends AbstractQuery {

    /*
     * (non-Javadoc)
     *
     * @see
     * fr.inria.arles.tempManagement.queryProcessor.query.AbstractQuery#execute
     * (java.lang.String[])
     */
    @Override
    public String execute(String[] args) throws ClassNotFoundException,
            SQLException {
        executeQuery("UPDATE TEMPERATURE SET TEMP=? WHERE ID=?", args);
        return "true";
    }
}
